1 |
anonymous classAn anonymous class is a synthetic subclass generated by the Scala compiler from a new expression in which the class or trait name is followed by curly braces. The curly braces contains the body of the [..]
|
2 |
anonymous classA class created without a class name. Such a class will be an sub class or an implementation of an interface, and is usually created as an actual argument or returned as a method result. For instance [..]
|
<< algebraic data type | anonymous function >> |